
import 'package:yb_zsyiji_androidflutter_pro/YBNetWorkModule/YBAPi/YBAPi.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBNetWorkModule/YBAPi/YBHttpUtils.dart';

class YBBaseWorkTaiNetWork {


  //转载文章
  static void workTaisaveWenZhangStrData<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.post(YBApi.saveWenZhangStrAPI, parameters,success: success,fail: fail);
  }

  ///热门文章
  static void workTaiGongGaoArticleList<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiGongGaoArticle, parameters,success: success,fail: fail);
  }

  //组织文章
  static void workTaiGongGaoZuzhiWenZhang<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaizuzhiWenZhang, parameters,success: success,fail: fail);
  }

  //我的文章
  static void workTaiGongGaoWoDeWenZhang<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiMyWenZhang, parameters,success: success,fail: fail);
  }



  //蚁集通&&律司通 --公共优选
  static void workTaiYiJitongLvSitong<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiYouXuanShangji, parameters,success: success,fail: fail);
  }

  //蚁集通&&律司通 --有效商机
  static void workTaiYiJitongLvSitongYouXiaoShangJi<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiYiHuoShangJi, parameters,success: success,fail: fail);
  }

  //蚁集通&&律司通 --公共商机 ---详情页
  static void workTaiGonggongShangJi<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiGongGongDetail, parameters,success: success,fail: fail);
  }

  //蚁集通&&律司通 --公共商机 --抢夺商机
  static void workTaiGongGongQiangDuoShangJi<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.POSTRequest(YBApi.workTaiGongGongQiangDuoShangJi, parameters,success: success,fail: fail);
  }

  //蚁集通&&律司通--公共商机--剩余联系次数
  static void workTaiGongGongShengYuhaworkTaiGonggongShangJingJi<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiGongGongTodayShengYuShangJi, parameters,success: success,fail: fail);
  }

  //蚁集通&&律司通 --优选商机-列表
  static void workTaiYiJitongLvSitongYouXuanList<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiYiHuoShangJi, parameters,success: success,fail: fail);
  }

  //蚁集通&&律司通 --公共商机 ---详情页
  static void workTaiYouXuanShangJiDetail<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiGongGongDetail, parameters,success: success,fail: fail);
  }


  //蚁集通&&律司通 --优选商机---详情页
  static void workTaiYouXuanDetailPage<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiShangJiDetail, parameters,success: success,fail: fail);
  }

  //蚁集通&&律司通 --优选商机（优选商机sourceType ）
  static void workTaiYouXuanShangJi<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiYiHuoShangJi, parameters,success: success,fail: fail);
  }

  //蚁集通&&律司通 --已获商机详情（有效商机）
  static void workTaiYiHuoShangJiYouXiao<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.POSTRequest(YBApi.workTaiMiShuYouXiaoShangJi, parameters,success: success,fail: fail);
  }

  // //蚁集通&&律司通 -- 已获商机
  // static void workTaiYouXuanShangJi<T>(parameters,{Success success, Fail fail}){
  //   YBHttpUtils.getRequest(YBApi.workTaiYiHuoShangJi, parameters,success: success,fail: fail);
  // }

  //蚁集通&&律司通 ---异议商机列表
  static void workTaiYiYiShangJi<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiYiYiShangJiList, parameters,success: success,fail: fail);
  }

  //蚁集通&&律司通 ---异议商机问题反馈
  static void workTaiYiYiFeedbackInfo<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.post(YBApi.workTaiMiShuYouXiaoYiYiQuestionManagerPage, parameters,success: success,fail: fail);
  }




  //秘书通 ---商机库---列表
  static void workTaiMiShuTongShangJiKuList<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiMiShuTong, parameters,success: success,fail: fail);
  }

  //秘书通 ----商机库---详情
  static void workTaiMiShuTongShangJiKuDetail<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiMiShuTongDetail, parameters,success: success,fail: fail);
  }

  //秘书通 ----商机库---详情--抢夺商机
  static void workTaiMiShuTongShangJiKuDetailQiangDuoShangJi<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.POSTRequest(YBApi.workTaiMiShuTongQiangduoShangJi, parameters,success: success,fail: fail);
  }

  //秘书通 ----商机库--刷选（全国，全部事务）
  static void workTaiMiShuTongShangJiKuShuaiXuanData<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiMiShuTongShuaiXuan, parameters,success: success,fail: fail);
  }

  //秘书通 ----商机管理--列表
  static void workTaiMiShuTongShangJiManager<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.workTaiMiShuTongShangjiManager, parameters,success: success,fail: fail);
  }

}